<!--Range with visible text but not on the edges-->
<div id="1"><span id="2">Text</span></div>

<!--Range with visible text in the edges-->
<span id="3">Text</span>
